#include <QtGui/QApplication>
#include "mainwindow.h"

int main(int argc, char *argv[])
{
    QApplication a(argc, argv);
    MainWindow w;

    QFile file(":/dark.qss");
    file.open(QIODevice::ReadOnly|QIODevice::Text);
    QTextStream ts(&file);
    a.setStyleSheet(ts.readAll());

    w.showMaximized();
    if(argc>1){
        if(w.loadXML(argv[1])){
            w.setCurrentFile(argv[1]);
        }
    }

    return a.exec();
}
